package com.example.ecommercedemo.mapper;

import com.example.ecommercedemo.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper 
{
//    查询category
    public Category selectCategoryByCid(Long cid);

//    查询category列表     不带一对多信息
    public List<Category> selectCategoryList(Category category);

//  新增category
    public int insertCategory(Category category);

//    修改category
    public int updateCategory(Category category);

//    删除category
    public int deleteCategoryByCid(Long cid);

//    批量删除category
    public int deleteCategoryByCids(Long[] cids);
    //带一对多信息
    public List<Category> selectCategoryGoodList(Category category);

}
